import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/ningbo/HomeView.vue'
import HomeView from '../views/home.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 首页
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    // 宁波首页
    {
      path: '/ningbo',
      name: 'ningbo',
      component: () => import('../views/ningbo/HomeView.vue'),
    },
    //排放页面
    {
      path: '/discharge',
      name: 'discharge',
      component: () => import('../views/ningbo/discharge.vue'),
    },
    //热管理页面
    {
      path: '/hot',
      name: 'hot',
      component: () => import('../views/ningbo/hot.vue'),
    },
    //整车页面
    {
      path: '/car',
      name: 'car',
      component: () => import('../views/ningbo/car.vue'),
    },
    //待机页面
    {
      path: '/',
      name: 'standby',
      component: () => import('../views/ningbo/standby.vue'),
    },
    //智能页面
    {
      path: '/intelligent',
      name: 'intelligent',
      component: () => import('../views/ningbo/intelligent.vue'),
    },
    //新能源页面
    {
      path: '/newEnergy',
      name: 'newEnergy',
      component: () => import('../views/ningbo/newEnergy.vue'),
    },
    //被动安全页面
    {
      path: '/safe',
      name: 'safe',
      component: () => import('../views/ningbo/safe.vue'),
    },
    //进出口认证页面
    {
      path: '/certification',
      name: 'certification',
      component: () => import('../views/ningbo/certification.vue'),
    },
    //上海中心页面
    {
      path: '/shanghai',
      name: 'shanghai',
      component: () => import('../views/shanghai/shanghaicenter.vue'),
    },
    //广州中心页面
    {
      path: '/guangzhou',
      name: 'guangzhou',
      component: () => import('../views/guangzhou/guangzhoucenter.vue'),
    },
    //武汉中心页面
    {
      path: '/wuhan',
      name: 'wuhan',
      component: () => import('../views/wuhan/wuhancenter.vue'),
    },
    //天津中心新能源页面
    {
      path: '/tianjinnewEnergy',
      name: 'tianjinnewEnergy',
      component: () => import('../views/tianjin/tianjinnewEnergy.vue'),
    },
    //常州中心页面
    {
      path: '/changzhou',
      name: 'changzhou',
      component: () => import('../views/changzhou/changzhoucenter.vue'),
    },
    //盐城中汽极限中心页面
    {
      path: '/yancheng',
      name: 'yancheng',
      component: () => import('../views/yancheng/yanchengcenter.vue'),
    },
    //视频中心页面
    {
      path: '/company',
      name: 'company',
      component: () => import('../views/company.vue'),
    },
    //昆明中心页面
    {
      path: '/kunming',
      name: 'kunming',
      component: () => import('../views/kunming/kunmingcenter.vue'),
    },
    //天津中心页面
    {
      path: '/tianjin',
      name: 'tianjin',
      component: () => import('../views/tianjin/tianjincenter.vue'),
    },
    //测试页面
    {
      path: '/test',
      name: 'test',
      component: () => import('../views/test.vue'),
    },
  ],
})

export default router
